home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / ABUSESRC.ZIP / AbuseSrc / macabuse / inc / automap.hpp < prev    next >
C/C++ Source or Header  |  1997-05-20  |  507b  |  26 lines

  1. #ifndef __AUTOMAP_HPP_
  2. #define __AUTOMAP_HPP_
  3.  
  4. #include "jwindow.hpp"
  5. #include "level.hpp"
  6.  
  7. class automap
  8.   jwindow *automap_window;
  9.   level *cur_lev;
  10.   int tick,w,h;                // used to draw your position as a blinking spot
  11.   long old_dx,old_dy;
  12. public :
  13.   automap(level *l, int width, int height);
  14.   void toggle_window();
  15.   void handle_event(event &ev);
  16.   void draw();
  17.   ~automap() { if (automap_window) toggle_window(); }
  18. } ;
  19.  
  20. extern automap *current_automap;
  21.  
  22. #endif
  23.  
  24.  
  25.